﻿using UnityEngine;

namespace Jinndev.UI {

    /// <summary>
    /// 为UI增加激活改变回调
    /// </summary>
    public interface IActivation {

        GameObject gameObject { get; }

        Transform transform { get; }

        /// <summary>
        /// UI激活时触发
        /// </summary>
        void OnActivation();

        /// <summary>
        /// UI停用时触发
        /// </summary>
        void OnDeactivation();

    }

}
